Deriving Event-Based Document Transformers from Tree-Based Specifications

نویسندگان

  • Keisuke Nakano
  • Susumu Nishimura
چکیده

Structured documents are usually processed by tree-based document transformers, which transform the document tree representing the structure of the input document into another tree structure. Event-based document transformers, by contrast, recognize the input as a stream of parsing events, i. e. lexical tokens, and process the events one by one in an event-driven manner. Event-based document transformers have advantages that they need less memory space and that they are more tolerant of large inputs, compared to tree-based transformers, which construct the intermediate tree representation. This paper proposes an algorithm which derives an event-based transformer from a given specification of a document transformation over a tree structure. The derivation of an event-based transformer is carried out in the framework of attribute grammars. We first obtain an attribute grammar which processes a stream of parsing events, by applying a deforestation method; We then derive an attribute evaluation scheme relevant to the event-based transformation. Using this algorithm, one can develop event-based document transformers in a more declarative style than directly programming over the stream of parsing events.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Deriving Event-based Document Transformers from Tree-based Speciications

The event-based document transformers, which process a structured document simply as a stream of parsing events, have an advantage over the conventional tree-based ones that they can avoid the unnecessary intermediate data construction. This paper proposes an algorithm which derives an event-based transformer from a given speci-cation of a document transformation. The derivation of an event-bas...

متن کامل

Systematic supervisory control solutions for under-load tap-changing transformers

Discrete-event systems (DES) can be found as essential integrated subsystems in many complex systems, e.g. electrical power systems. Under-load tap-changing (ULTC) transformers which obviously have discrete-event behavior are widely used in transmission systems to take care of instantaneous variations in the load conditions in substations. In this paper, the voltage control problem in ULTC is s...

متن کامل

Plagiarism checker for Persian (PCP) texts using hash-based tree representative fingerprinting

With due respect to the authors’ rights, plagiarism detection, is one of the critical problems in the field of text-mining that many researchers are interested in. This issue is considered as a serious one in high academic institutions. There exist language-free tools which do not yield any reliable results since the special features of every language are ignored in them. Considering the paucit...

متن کامل

Automated Event Tree Analysis Based-on Scenario Specifications

Event tree analysis is widely used for reliability and safety analyses as it can be used to specify how the system behaves under various failure conditions. Even though event tree analysis is automated, the construction of event trees is unfortunately manual, and thus error-prone. This paper proposes an automated technique to generate event trees from scenario specifications even before system ...

متن کامل

Determining factors contributing to the five-year survival of children suffering from acute lymphoblastic leukemia based on tree survival model in the presence of competing risks

Abstract Background and objectives: Leukemia is one of the most prevalent cancers worldwide. The relapse of the disease mitigates patient survival time. The convenience of explaining the results obtained from analyzing tree models have encouraged doctors and paramedics to employ them in their research. The current study is an attempt to determine the five-year survival time and factors influen...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Electr. Notes Theor. Comput. Sci.

دوره 44  شماره 

صفحات  -

تاریخ انتشار 2001